import Taro from '@tarojs/taro';
import { View } from '@tarojs/components'
import './index.scss'
import RecordDetails from '@/components/recordDetails/index';
import { PropTypes } from 'prop-types';

export default class recordDetails extends Taro.Component {
    constructor(props) {
        super(props);
        this.state = {
            recorditem:{}
        }
    }
    componentWillMount(){
        this.setState({
            recorditem: this.$router.params
        })
    }
    config = {
        navigationBarTitleText: '记录详情'
    }
    render() {
        let { recorditem } = this.state;
        return (
            <View className='pt-2-5 pl-2-5 pr-2-5'>
                <RecordDetails recorditem={recorditem}></RecordDetails>
            </View>
        )
    }
}
